home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / vh-1_5.lha / vh-1.5 / Makefile < prev    next >
Makefile  |  1993-05-11  |  2KB  |  86 lines

  1. # Makefile for the vh (volks-hypertext) browser
  2. #
  3. # Set your system type and I/O facilities
  4. # -DUNIX       -- The OS is UNIX
  5. # -DATT        -- The OS is AT&T UNIX (System III, System V)
  6. # -DBSD        -- The OS is Berkeley UNIX
  7. # -DMSDOS      -- The OS is MSDOS
  8. # -DCURSES     -- curses(3) character-oriented screen handling
  9. # -DAMIGA    -- Generate for the Amiga, using Amiga curses
  10. # -DATTMOUSE    -- AT&T 6386 /dev/mouse
  11. # -DPOPUP    -- text entry via Mac-like dialogue boxes.
  12. # -DCONST    -- your C has `const'
  13. #
  14. # If you're using Borland Turbo-C under MS-DOS, see TurboMake
  15. #
  16.  
  17. # Flags for System V Release 4
  18. # SYSTYPE=-DUNIX -DCURSES -DATT -DSCROLLBAR #-DATTMOUSE -DPOPUP
  19. # CFLAGS  = -O $(SYSTYPE)
  20. # LDFLAGS = -s
  21. # LIBS = -lcurses
  22.  
  23. # Flags for AT&T System V Release 3.2
  24. # You may have to remove the -DATTMOUSE; see the READ.ME
  25. SYSTYPE=-DUNIX -DCURSES -DATT -DSCROLLBAR -DATTMOUSE # -DPOPUP
  26. CFLAGS  = -O $(SYSTYPE)
  27. LIBS = -lcurses
  28. LDFLAGS = -s
  29.  
  30. # Try these for Linux. You *must* use the ncurses package for this, it 
  31. # won't work with the curses that comes with the gcc libs.
  32. # SYSTYPE=-DUNIX -DCURSES -DBSD
  33. # CFLAGS  = -O6 -fomit-frame-pointer $(SYSTYPE)
  34. # LDFLAGS = -s
  35. # LIBS = -lncurses
  36.  
  37. # Try these for SunOS 4.1
  38. # SYSTYPE=-DUNIX -DCURSES -DATT -DSCROLLBAR  
  39. # CC=/usr/5bin/cc
  40. # INCDIR = -I/usr/5include -I/usr/include
  41. # CFLAGS  = -O $(SYSTYPE) $(INCDIR)
  42. # LIBS = -L/usr/5lib
  43. # LDFLAGS = -s
  44.  
  45. jargon: vh
  46.     mv vh jargon
  47.  
  48. vh: vh.o browse.o screen.o
  49.     $(CC) $(LDFLAGS) vh.o browse.o screen.o $(LIBS) -o vh
  50.  
  51. vh.o: vh.c vh.h
  52. browse.o: browse.c vh.h screen.h
  53. screen.o: screen.c screen.h
  54.  
  55. vh.lpr: vh.1
  56.     nroff -Tlp -man vh.1 >vh.lpr
  57.  
  58. clean:
  59.     rm -f vh vh.o browse.o screen.o vh.shar vh.lpr TAGS *~
  60.  
  61. SOURCES    = vh.h vh.c screen.h screen.c browse.c
  62. ALL    = READ.ME README.AMIGA COPYING vh.1 Makefile TurboMake $(SOURCES)
  63.  
  64. vh.shar: $(ALL) vh.lpr
  65.     shar $(ALL) vh.lpr >vh.shar
  66.  
  67. vh.tar: $(ALL) vh.lpr
  68.     tar cvf vh.tar $(ALL) vh.lpr
  69.  
  70. vh.tar.z: vh.tar
  71.     gzip vh.tar
  72.  
  73. vh.cpio.Z: $(ALL) vh.lpr
  74.     echo $(ALL) vh.lpr | tr ' ' '\012' | cpio -ocv >vh.cpio
  75.     compress -b 14 vh.cpio
  76.  
  77. browser.arc: $(ALL) vh.lpr
  78.     rm -f browser.arc arcdir/*
  79.     cp $(ALL) vh.lpr arcdir
  80.     cd arcdir; arc mi ../browser.arc $(ALL) vh.lpr
  81.     # This calculation multiplies by 2 to account for XMODEM overhead
  82.     @set - `ls -l browser.arc`; echo "2400bps xmodem upload should take ~" `echo "$$5 / 9000" | bc` minute\(s\)."
  83.  
  84. TAGS: $(SOURCES)
  85.     etags $(SOURCES)
  86.